package com.github.nuggets.model.exception;

import com.github.nuggets.model.result.ResultInfoEnum;
import lombok.Data;

/**
 * @description:
 * @author: wangsj
 * @date: 2022/3/17 8:18 下午
 */
@Data
public class CommonException extends BaseException{

    public CommonException() {
        super(ResultInfoEnum.FAIL);
    }

    public CommonException(String msg){
        super(ResultInfoEnum.FAIL.getResultCode(),msg);
    }

    public CommonException(String msg, Throwable cause){
        super(ResultInfoEnum.FAIL.getResultCode(),msg,cause);
    }

    public CommonException(Throwable cause){
        super(ResultInfoEnum.FAIL,cause);
    }
}
